package com.example.xlmkotlinwanandroid.base

import android.os.Bundle
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity

/**
 *  author : cailei
 *  date : 2022/3/11
 *  description :
 */
abstract class BaseVMActivity<out VM> : AppCompatActivity() {

    private val viewModel: VM by viewModels()


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        viewBinding()
        initViews()
    }

    abstract fun viewBinding()
    abstract fun initViews()
}